package imv3.foo.client.handler;

import imv3.protocol.response.LogoutResponsePacket;
import imv3.util.SessionUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/26 0026 9:58
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
public class LogoutResponseHandler extends SimpleChannelInboundHandler<LogoutResponsePacket> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, LogoutResponsePacket logoutResponsePacket) throws Exception {
        SessionUtil.unbind(ctx.channel());
    }
}
